package com.reason.chat.Config;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.reason.chat.pojo.Sensitive;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 熊钒汐
 * @date 2020/6/30 9:16
 */
public class ReadExcelConfig extends AnalysisEventListener {
    private List<Object> list = new ArrayList<>();
    @Override
    public void invoke(Object o, AnalysisContext analysisContext) {
        if(o!=null)
        {
            list.add(o);
        }

    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
    }

    public  List<Object> getSensitiveThesaurus()
    {
        return list;
    }
    public void delSensitiveThesaurus()
    {
        list.clear();
    }
}
